<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

return [
    '__pattern__' => [
        'name'    => '\w+',
    ],
    '[type]'      => [
        ':type'   => ['index/type',['method'=>'get'],['type'=>'\w+']]
    ],
    '[works]'     => [
        ':id'     => ['index/works',['method'=>'get'],['id'=>'\d+']],
        ':type'   => ['index/works',['method'=>'get'],['type'=>'\w+']]
    ],
    '[article]'   => [
        ':id'     => ['index/article','method'=>'get',['id'=>'\d+']]
    ],
    '[page]'      => [
        ':name'   => ['index/page','method'=>'get',['name'=>'\w+']]
    ],
    '[link]'      => [
        ':name'   => ['index/link','method'=>'get',['name'=>'\w+']]
    ]
];
